package com.yic.module.base.controller.admin.supplier.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 供应商信息 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class SupplierBaseVO {

    @Schema(description = "供应商名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotNull(message = "供应商名称不能为空")
    private String name;

    @Schema(description = "供应商代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "供应商代码不能为空")
    private String code;

    @Schema(description = "社会统一信用代码")
    private String societyCode;

    @Schema(description = "供应商电话")
    private String mobile;

    @Schema(description = "供应商邮箱")
    private String email;

    @Schema(description = "供应商地址")
    private String address;

    @Schema(description = "主营业务")
    private String business;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "信誉等级", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "信誉等级不能为空")
    private Integer reputation;

    @Schema(description = "联系人", example = "芋艿")
    private String linkName;

    @Schema(description = "联系人电话")
    private String linkMobile;

    @Schema(description = "联系人邮箱")
    private String linkEmail;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;

}
